public class Undergraduate extends Student{
    private String degree;
    public Undergraduate(String name, int age, String degree) {
        super.setName(name);
        super.setAge(age);
        this.degree = degree;
        this.show();
    }
    public void show() {
        super.show();
        System.out.println("  学位: " + this.degree);
    }

}
